import request from '../utils/request'

// 活动查询
export function getActivityPageList(params) {
  return request({
    method: 'get',
    url: '/api/Activity/Find_Admin',
    params
  })
}


// 报名查询
export function getSignPageList(params) {
  return request({
    method: 'get',
    url: '/api/Activity/FindSign_Admin',
    params
  })
}

// 新增活动
export function createActivity(data) {
  return request({
    method: 'post',
    url: '/api/Activity/Create',
    data
  })
}

// 修改活动
export function updateActivity(data) {
  return request({
    method: 'post',
    url: '/api/Activity/Update',
    data
  })
}

// 设置活动状态
export function setActiveActivity(data) {
  return request({
    method: 'post',
    url: '/api/Activity/SetActive',
    data
  })
}


// 删除活动
export function deleteActivity(data) {
  return request({
    method: 'post',
    url: '/api/Activity/Delete',
    data
  })
}
